#pragma once
#include <wrl.h>
class FrameTimer
{
private:
	long long m_timeCycles;
	long long m_cyclesPerSecond;
	long long m_startTimeCounter;
	long long m_deltaTimeCycles;
	inline long long SecondsToCycle(double timeSeconds)
	{
		return (long long)(timeSeconds*m_cyclesPerSecond);
	}
	inline double CyclesToSeconds(long long timeCycles)
	{
		return (double)((double)timeCycles / (double)m_cyclesPerSecond);
	}
public:
	FrameTimer();
	~FrameTimer();
	void Update();
	double GetPredictedFrameTime();
};